<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="~{/fragment/header :: header}"></div>
    <div th:replace="~{/fragment/header :: header-css}"></div>
    <div th:replace="~{/fragment/header :: header-nav}"></div>
</head>
<body>
<div class="container">
    <a th:href="@{/pricing/insert}" class="btn btn-success">新增</a>
    <table class="table table-striped">
        <thead>
        <tr>
            <th>序号</th>
            <th>按小时计费</th>
            <th>按天计费</th>
            <th>超过限定小时按天计费</th>
            <th>更新时间</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="pricing : ${list}">
            <td th:text="${pricing.id}"></td>
            <td th:text="${pricing.hourlyRate}"></td>
            <td th:text="${pricing.dailyRate}"></td>
            <td th:text="${pricing.exceedingHour}"></td>
            <td th:text="${#dates.format(pricing.updateTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td>
                <a th:href="@{/pricing/edit/{id}(id=${pricing.id})}" class="btn btn-info">修改</a>
                <a th:href="@{/pricing/detail/{id}(id=${pricing.id})}" class="btn btn-secondary">详细信息</a>
                <a th:href="@{/pricing/delete/{id}(id=${pricing.id})}" class="btn btn-danger">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>


<div th:replace="~{/fragment/header :: header-js}"></div>
<div th:replace="~{/fragment/footer :: footer}"></div>
</body>
</html>